package com.github.xuemingyu.springboot.acticitycloud.dao;

import com.github.xuemingyu.springboot.acticitycloud.entity.Activity;
import com.github.xuemingyu.springboot.acticitycloud.entity.enumEntity.ActivityStatus;
import com.github.xuemingyu.springboot.jkfaststart.repository.BaseJPA;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface ActivityDao extends BaseJPA<Activity> {
    Activity findFirstByActivityId(Long activityId);

    Activity findFirstByActivityIdAndDeleteTag(Long activityId, Boolean detele);

    List<Activity> findActivitiesByActivityIdIsInAndActivityStatus(List<Long> activityIds, ActivityStatus status);

    List<Activity> findActivitiesByActivityIdIsInAndActivityStatusAndDeleteTag(List<Long> activityIds, ActivityStatus status, boolean deleteTag);

    List<Activity> findActivitiesByActivityIdIsInAndDeleteTag(List<Long> activityIds, boolean deleteTag);

    List<Activity> findAllByDeleteTag(Boolean deleteTag);

    List<Activity> findActivitiesByActivityIdIsInAndActivityStatusNot(List<Long> list, ActivityStatus status);
}
